package com.scott.customer.service;

import com.scott.customer.service.impl.SayHelloServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author guanjiwei
 */
@FeignClient(value = "provider-a", fallback = SayHelloServiceImpl.class)
public interface SayHelloService {

    @GetMapping("/say")
    String findHello();

    @GetMapping("/hello")
    String hello();

}
